package nameServerPersistent;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.server.ServerNotActiveException;

/**
 * This interface specifies the remote methods that are available via the
 * Server's RMI registry.
 * 
 */
public interface ServerRMI extends Remote {

    public Remote join(String gName, Remote t) throws RemoteException,
            ServerNotActiveException;

    public String[] getCassandraNodes() throws RemoteException,
            ServerNotActiveException;

    public boolean rebindLeader(String gName, Remote newleader)
            throws RemoteException, ServerNotActiveException;
}
